<?php defined('BASEPATH') OR die('No direct access allowed.');
/**
 * Description of "sidebar-left"
 *
 * Created on Dec 17, 2010
 * @author Ramon Gutierrez
 * @copyright Bitstop Network Services Inc.
 * @version 0.1
 */
?>

            <div id="nav">
              <div id="loginbox">
                <?php if($this->session->userdata('account_id')): ?>
                <div class="head">Hi <span style="text-decoration: underline;"><?php echo $this->session->userdata('first_name'); ?></span>!</div>
                <?php if($this->session->userdata('account_type') == 'site_admin'): ?>
                <?php elseif($this->session->userdata('account_type') == 'company'): ?>
                <?php elseif($this->session->userdata('account_type') == 'manager'): ?>
                <?php endif; ?>
                <a class="button-form nav" href="<?php echo site_url(); ?>"><img src="<?php echo site_url('images/dashboard.png'); ?>" alt="" /><?php echo $this->lang->line('usernav_dashboard'); ?></a>
                <a class="button-form nav" href="<?php echo site_url('branches'); ?>"><img src="<?php echo site_url('images/branches.png'); ?>" alt="" /><?php echo $this->lang->line('usernav_branches'); ?></a>
                <a class="button-form nav" href="<?php echo site_url('services'); ?>"><img src="<?php echo site_url('images/services.png'); ?>" alt="" /><?php echo $this->lang->line('usernav_services'); ?></a>
                <a class="button-form nav" href="<?php echo site_url('accounts'); ?>"><img src="<?php echo site_url('images/accounts.png'); ?>" alt="" /><?php echo $this->lang->line('usernav_accounts'); ?></a>
                <a class="button-form nav" href="<?php echo site_url('reports'); ?>"><img src="<?php echo site_url('images/reports.png'); ?>" alt="" /><?php echo $this->lang->line('usernav_reports'); ?></a>
                <?php if($this->session->userdata('account_type') == 'company'): ?>
                <a class="button-form nav" href="<?php echo site_url('settings'); ?>"><img src="<?php echo site_url('images/settings.png'); ?>" alt="" /><?php echo $this->lang->line('usernav_settings'); ?></a>
                <?php endif; ?>
                <a class="button-form nav" href="<?php echo site_url('logout'); ?>"><img src="<?php echo site_url('images/signout.png'); ?>" alt="" /><?php echo $this->lang->line('usernav_logout'); ?></a>
                <?php else: ?>
                <div class="head"><?php echo $this->lang->line('login_header'); ?></div>
                <div id="responselogin">&nbsp;</div>
                <form id="loginform" method="post" action="<?php echo site_url('login'); ?>">
                  <div class="form">
                    <div class="label"><?php echo $this->lang->line('login_username'); ?></div><div class="element"><span class="inputspan"><input type="text" name="username" id="username" /></span></div>
                    <div class="clear"></div>
                    <div class="label"><?php echo $this->lang->line('login_password'); ?></div><div class="element"><span class="inputspan"><input type="password" name="password" id="password" /></span></div>
                    <div class="clear"></div>
                    <!--<div class="label">&nbsp;</div><div class="element"><label><input class="inline" type="checkbox" name="remember_me" /><?php echo $this->lang->line('login_remember_me'); ?></label></div>-->
                    <div class="clear"></div>
                    <a class="button-form submit" href="javascript:void(null);" id="btn-submit-login" style="margin: 0 auto;"><img src="<?php echo site_url('images/signin.png'); ?>" alt="" /><?php echo $this->lang->line('login_submit'); ?></a>
                    <noscript><div><input type="submit" value="<?php echo $this->lang->line('login_submit'); ?>" /></div></noscript>
                    <div class="footnote"><a href="<?php echo site_url('recovery'); ?>"><?php echo $this->lang->line('login_forgotpass'); ?></a></div>
                  </div>
                </form>
                <?php endif; ?>
              </div>
              <!--
              <div>
                <ul id="sliding-navigation">  
                  <li class="sliding-element"><span class="h3"><img src="<?php echo site_url('images/folder.png'); ?>" alt="" /><?php echo $this->lang->line('nav_title'); ?></span></li>  
                  <li class="sliding-element"><a href="#"><span><img src="<?php echo site_url('images/tag_orange.png'); ?>" alt="" />Link 1</span></a></li>  
                  <li class="sliding-element"><a href="#"><span><img src="<?php echo site_url('images/tag_yellow.png'); ?>" alt="" />Link 2</span></a></li>  
                  <li class="sliding-element"><a href="#"><span><img src="<?php echo site_url('images/tag_green.png'); ?>" alt="" />Link 3</span></a></li>  
                </ul>
              </div>
              -->
            </div>
